Chancellor Sajid Javid said he was not worried after figures showed the UK's economy shrunk for the time since 2012.