Rajapaksa offers prayers at Tirupati temple