Lewis Hamilton has been given a five-second time penalty following the Singapore Grand Prix, meaning the Ferrari driver falls from seventh to eighth in the finishing order.